find length of a String without using library function in python